home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / test / test_codecmaps_tw.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  33 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. from test import test_support
  5. from test import test_multibytecodec_support
  6. import unittest
  7.  
  8. class TestBIG5Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  9.     encoding = 'big5'
  10.     mapfilename = 'BIG5.TXT'
  11.     mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT'
  12.  
  13.  
  14. class TestCP950Map(test_multibytecodec_support.TestBase_Mapping, unittest.TestCase):
  15.     encoding = 'cp950'
  16.     mapfilename = 'CP950.TXT'
  17.     mapfileurl = 'http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP950.TXT'
  18.     pass_enctest = [
  19.         ('\xa2\xcc', u'\xe5\x8d\x81'),
  20.         ('\xa2\xce', u'\xe5\x8d\x85')]
  21.  
  22.  
  23. def test_main():
  24.     suite = unittest.TestSuite()
  25.     suite.addTest(unittest.makeSuite(TestBIG5Map))
  26.     suite.addTest(unittest.makeSuite(TestCP950Map))
  27.     test_support.run_suite(suite)
  28.  
  29. test_multibytecodec_support.register_skip_expected(TestBIG5Map, TestCP950Map)
  30. if __name__ == '__main__':
  31.     test_main()
  32.  
  33.